home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ AutoExit HungAps.xpl < prev    next >
Text File  |  1998-08-08  |  1KB  |  45 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 3.1"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="System\Timeouts"
  5. "NAME"="AutoEnd Programs"
  6. "LANGUAGE"="VBScript"
  7. "TEXT 1"="AutoEnd programs on exit"
  8. "DESCRIPTION 1"="If the computer is about to be shut down, it is possible that a program can't be ended because it "hangs"."
  9. "DESCRIPTION 2"="If this happens and this option is activated, the program is automatically ended."
  10. "DESCRIPTION 3"="If it's deactivated, Windows displays an error message and asks the user what to do."
  11. "AUTHOR"="Xteq Systems"
  12. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  13. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@gmx.net."
  14. "COMMENT 2"="Version 1.1"
  15.  
  16.  
  17. 'Declaration of some constants
  18. sP="HKCU\Control Panel\Desktop\"
  19. sV1="AutoEndTasks"
  20.  
  21. 'Called when the Plugin is started
  22. Sub Plugin_Initialize
  23.  i=RegReadValue(sp & sv1)
  24.  if i=1 then SetUIElement 1,true
  25. End Sub
  26.  
  27. 'Called when the Plugin should validate the Data the user has entered
  28. Sub Plugin_CheckData(ElementIndex)
  29. End Sub
  30.  
  31. 'Called when the Plugin should apply the changes
  32. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  33.  b=GetUIElement(1)
  34.  if b=true then 
  35.   Call RegWriteValue(sp&sv1,1,1)
  36.  else
  37.   Call RegWriteValue(sp&sv1,0,1)
  38.  end if
  39.  
  40. End Sub
  41.  
  42. 'Called when the Plugin is about to be removed from memory
  43. Sub Plugin_Terminate
  44. End Sub
  45.